package com.kitty.game.server.facade;

import com.kitty.game.server.message.ReqCheckServer;
import com.kitty.game.server.message.RespCheckServer;
import com.kitty.mina.annotation.RequestMapping;
import com.kitty.mina.message.MessagePusher;
import lombok.extern.slf4j.Slf4j;
import org.apache.mina.core.session.IoSession;
import org.springframework.stereotype.Controller;

@Controller
@Slf4j
public class SystemController {

    @RequestMapping
    public void checkServer(IoSession session , ReqCheckServer checkServer){
        MessagePusher.pushMessage(session,new RespCheckServer(checkServer.getCookie()+1));
    }
}
